<?php

/**
 * Công cụ xây dựng SQL 
 *
 * Được sinh mã tự động
 *
 * @version $Rev:$
 * @license Baotq Daniel Chivas
 */
class Generate_QuerybuilderController extends Zend_Controller_Action
{

    public function init()
    {
        $this->params = $this->getRequest()->getParams();
        System_Template::using("blank","Admin");
        $this->model = new Generate_Model_Querybuilder();
        parent::init();
    }

    public function indexAction()
    {
        $listTable = $this->model->getAllTable();
        $this->view->listTable = $listTable;
    }
    public function gettableinfoAction(){
        $table = $this->params['tableName'];
        $result = $this->model->getAllColumn($table);
        ajax::ship("listCol", $result);
    }
    public function saveAction()
    {
        
    }


}

